package itheima_edu_info_manager.controller;


import itheima_edu_info_manager.domain.Student;

import java.util.Scanner;

public class StudentController extends BaseStudentController{


    private Scanner sc = new Scanner(System.in);

    @Override
    public Student inputStudentIofo(String id) {

        System.out.println("请输入学生姓名:");
        String name = sc.next();
        System.out.println("请输入学生年龄:");
        String age = sc.next();
        System.out.println("请输入学生生日:");
        String birthday = sc.next();

        return new Student(id, name, age, birthday);
    }
}
